package com.gsafety.wellsfort.common.enums;

import lombok.Getter;

@Getter
public enum SchoolEnum {
    MANAGE_PLATFORM(1, "总平台"),
    FICTITIOUS_SCHOOL(2, "虚拟学校");
    public Integer value;
    public String desc;

    SchoolEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static SchoolEnum parseVal(Integer value) {
        SchoolEnum[] enums = SchoolEnum.values();
        for (SchoolEnum s : enums) {
            if (s.getValue().intValue() == value.intValue()) {
                return s;
            }
        }
        return null;
    }
}
